﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/adminDesign.master" AutoEventWireup="true"
    CodeBehind="AddProduct.aspx.cs" Inherits="PizzaWic.admin.AddProduct" %>

<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
    Ajouter un produit
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyAdmin" runat="server">
    <div id="content-table-inner">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td>
                    <div id="step-holder">
                        <div class="step-no">
                        </div>
                        <div class="step-dark-left">
                            <a href="">Veuillez renseigner les champs ci-dessous:</a></div>
                        <div class="clear">
                        </div>
                    </div>
                    <!--  end step-holder -->
                    <!-- start id-form -->
                    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                        <tr>
                            <th valign="top">
                                Nom:
                            </th>
                            <td>
                                <asp:TextBox ID="name" runat="server" class="inp-form"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="reqName" runat="server" ErrorMessage="* Champ requis"
                                    ControlToValidate="name"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <th valign="top">
                                Type:
                            </th>
                            <td>
                                <asp:DropDownList CssClass="styledselect2" ID="type" runat="server">
                                    <asp:ListItem>Pizza</asp:ListItem>
                                    <asp:ListItem>Boisson</asp:ListItem>
                                    <asp:ListItem>Dessert</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <th valign="top">
                                Prix:
                            </th>
                            <td>
                                <asp:TextBox ID="prix" runat="server" Text="0" class="inp-form"></asp:TextBox>
                                <ajaxToolkit:NumericUpDownExtender ID="nudUnitaryQuantity" runat="server" TargetControlID="prix"
                                    Width="100" Minimum="0" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <th valign="top">
                                Photo:
                            </th>
                            <td>
                                <asp:FileUpload ID="fileUploader" CssClass="file_1" runat="server" />
                            </td>
                        </tr>
                        <asp:Repeater ID="rmList" runat="server">
                            <HeaderTemplate>
                                <tr>
                                    <th>
                                        Composé de :
                                    </th>
                                    <th>
                                        Matières premières à ajouter
                                    </th>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:HiddenField ID="HiddenFieldrm" runat="server" Value='<%# Eval("id_raw_material") %>' />
                                        <asp:CheckBox ID="CheckBoxRawMaterial" runat="server" AutoPostBack="false" OnCheckedChanged="addRawMaterialToProduct" />
                                        <asp:Label ID="Label1" runat="server" Text=""><%# Eval("name")%></asp:Label>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <th>
                                &nbsp;
                            </th>
                            <td valign="top">
                                <br />
                                <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Valider" />
                                <br />
                                <br />
                                <asp:Label ID="notification" runat="server" Text=""></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
                <td>
                    <div id="related-activities">
                        <div id="related-act-top">
                            <img src="../images/forms/header_related_act.gif" width="271" height="43" alt="" />
                        </div>
                        <div id="related-act-bottom">
                            <div id="related-act-inner">
                                <div class="left">
                                    <a href="#">
                                        <img src="../images/forms/icon_edit.gif" width="21" height="21" alt="" /></a></div>
                                <div class="right">
                                    <h5>
                                        Gestion des produits</h5>
                                    <br />
                                    Une fois les produits ajoutés, vous pouvez les modifier ou les supprimer via
                                    le lien sur le menu de la page, "Gestion des produits".
                                    <br />
                                    <br />
                                    <ul class="greyarrow">
                                        <li><a href="ProductManagement.aspx">Gestion des produits</a></li>
                                    </ul>
                                </div>
                                <div class="clear">
                                </div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                </td>
            </tr>
        </table>
        <div class="clear">
        </div>
    </div>
</asp:Content>
